package com.trkj.pojos;

import java.io.Serializable;

import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the EQUIP_REPAIR database table.
 * 
 */
@Entity
@Table(name="EQUIP_REPAIR")
@NamedQuery(name="EquipRepair.findAll", query="SELECT e FROM EquipRepair e")
public class EquipRepair implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(initialValue=1, allocationSize=1, name="REPAI_ID_GENERATOR", sequenceName="SEQ2")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="REPAI_ID_GENERATOR")
	@Column(name="REPAI_ID")
	private long repaiId;

	@Column(name="REPAI_CHECK")
	private String repaiCheck;

	@Temporal(TemporalType.DATE)
	@Column(name="REPAI_DATE")
	private Date repaiDate;

	@Column(name="REPAI_MAN")
	private String repaiMan;

	@Column(name="REPAI_NAME")
	private String repaiName;
	
	@Column(name="REPAI_QUESTION")
	private String repaiQuestion;

	@Column(name="REPAI_STATE")
	private String repaiState;

	@Temporal(TemporalType.DATE)
	@Column(name="REPAI_TIME")
	private Date repaiTime;

	@Column(name="REPAI_TITLE")
	private String repaiTitle;
	/*
	@Column(name="REPAI_DEPT")
	private String repaiDept;
*/

/*	public String getRepaiDept() {
		return repaiDept;
	}

	public void setRepaiDept(String repaiDept) {
		this.repaiDept = repaiDept;
	}*/

	//bi-directional many-to-one association to EquipUse
	@ManyToOne
	@JoinColumn(name="USE_ID")
	private EquipUse equipUse;

	public EquipRepair() {
	}

	public long getRepaiId() {
		return this.repaiId;
	}

	public void setRepaiId(long repaiId) {
		this.repaiId = repaiId;
	}

	public String getRepaiCheck() {
		return this.repaiCheck;
	}

	public void setRepaiCheck(String repaiCheck) {
		this.repaiCheck = repaiCheck;
	}

	public Date getRepaiDate() {
		return this.repaiDate;
	}

	public void setRepaiDate(Date repaiDate) {
		this.repaiDate = repaiDate;
	}

	public String getRepaiMan() {
		return this.repaiMan;
	}

	public void setRepaiMan(String repaiMan) {
		this.repaiMan = repaiMan;
	}

	public String getRepaiName() {
		return this.repaiName;
	}

	public void setRepaiName(String repaiName) {
		this.repaiName = repaiName;
	}

	public String getRepaiQuestion() {
		return this.repaiQuestion;
	}

	public void setRepaiQuestion(String repaiQuestion) {
		this.repaiQuestion = repaiQuestion;
	}

	public String getRepaiState() {
		return this.repaiState;
	}

	public void setRepaiState(String repaiState) {
		this.repaiState = repaiState;
	}

	public Date getRepaiTime() {
		return this.repaiTime;
	}

	public void setRepaiTime(Date repaiTime) {
		this.repaiTime = repaiTime;
	}

	public String getRepaiTitle() {
		return this.repaiTitle;
	}

	public void setRepaiTitle(String repaiTitle) {
		this.repaiTitle = repaiTitle;
	}

	public EquipUse getEquipUse() {
		return this.equipUse;
	}

	public void setEquipUse(EquipUse equipUse) {
		this.equipUse = equipUse;
	}

}